import {createRouter, createWebHistory, createWebHashHistory} from "vue-router";
import TodoList from "../components/view/TodoList.vue";
import TodayCard from "../components/view/TodayCard.vue";
import CardCollectionList from "../components/view/CardCollectionList.vue";
import CardList from "../components/view/CardList"

const routes = [
    {
        path: "/",
        name: "todoList",
        component: TodoList,
    },
    {
        path: "/todayCard",
        name: 'todayCard',
        component: TodayCard
    },
    {
        path: "/cardCollectionList",
        name: 'cardCollectionList',
        component: CardCollectionList
    },
    {
        path: "/cardList",
        name: 'cardList',
        component: CardList
    },
];

const router = createRouter({
    history: process.env.IS_ELECTRON ? createWebHashHistory(process.env.BASE_URL) : createWebHistory(process.env.BASE_URL),
    linkActiveClass: 'mui-active',
    routes
});

export default router;
